import request from "@/utils/request";

// 单题正确率
export function getSubjectExamRightData(data) {
  return request({
    url: `/api/course/TemsSubject/getSubjectExamRightData`,
    method: "POST",
    data
  });
}

// 单题错误率
export function getStudyExamWrongDataList(data) {
  return request({
    url: `/api/course/TemsSubject/getSubjectExamWrongData`,
    method: "POST",
    data
  });
}

// 正确率统计【仅考试】
export function getStudyExamRightDataList(data) {
  return request({
    url: `/api/exam/TemsExam/getStudyExamRightDataList`,
    method: "POST",
    data
  });
}

// 各市培训情况图形统计（包含首页和数据表格统计）
export function getProvinceSubjectData(data) {
  return request({
    url: `/api/course/TemsSubject/getProvinceSubjectData`,
    method: "POST",
    data
  });
}

// 按年度筛，选按年度统计
export function getYearCount(year) {
  return request({
    url: `/api/course/TemsCourse/getYearCount/${year}`,
    method: "POST"
  });
}

